<?php
declare (strict_types = 1);

namespace app\admin\controller;

use app\util\AdminUserUtil;
use app\util\CommonUtil;
use app\util\UserUtil;
use think\facade\View;

class Index
{
    public function index()
    {
        $websiteName = CommonUtil::getSystemSetting('website_title_top');
        View::assign("website_name", $websiteName);
        $loginUserInfo = AdminUserUtil::getAdminUserLoginInfo();

        $loginNickName= isset($loginUserInfo['nickname']) ? $loginUserInfo['nickname']:'';
        View::assign('login_nickname', $loginNickName);
        return View::fetch("index/index");
    }
}
